package com.wzz.sparkSql

import org.apache.spark.sql.SparkSession

object HiveDemo {
  def main(args: Array[String]): Unit = {
    val spark: SparkSession = SparkSession
      .builder()
      .master("local[*]")
      .appName("Test")
      .enableHiveSupport()
      .getOrCreate()

    import spark.implicits._

    spark.sql("use ods")

    spark.sql("select * from test").show

    spark.stop()
  }

}
